//
//  Utils.h
//  MemberProject
//
//  Created by MAC OS X on 15/4/3.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import "AFHTTPRequestOperation.h"
@interface Utils : NSObject

+ (BOOL) validateIdCard:(NSString *)idCard;//匹配身份证
+ (BOOL) validateMobile:(NSString *)mobile;//匹配电话号码
+ (BOOL) validateEmail:(NSString *)email;//匹配邮箱
+(BOOL)validataDate:(NSString *)date;//匹配日期
+(NSString *)md5:(NSString *)str;

+(AFHTTPRequestOperation *)requestDic:(NSDictionary *)parameters andRusult:(CSResultBlock)result andError:(CSResultBlock)errorResult;
+(void)showAlert:(NSString *)str;
@end
